package com.crm;

import com.alicp.jetcache.anno.config.EnableCreateCacheAnnotation;
import com.alicp.jetcache.anno.config.EnableMethodCache;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;

/**
 * 启动程序
 *
 * @author crm
 */
@SpringBootApplication(exclude = { DataSourceAutoConfiguration.class })
@EnableMethodCache(basePackages = "com.crm",order = -9999)
@EnableCreateCacheAnnotation
// 指定要扫描的Mapper类的包的路径
@MapperScan({"com.crm.system.mapper","com.crm.generator.mapper","com.crm.quartz.mapper","com.crm.business.admin.mapper","com.crm.business.crm.mapper","com.crm.business.examine.mapper","com.crm.business.oa.mapper","com.crm.business.agreement.mapper"})
//@MapperScan({"com.crm.**.mapper","com.crm.business.**.mapper"})
public class CrmApplication
{
    public static void main(String[] args)
    {
        // System.setProperty("spring.devtools.restart.enabled", "false");
        SpringApplication.run(CrmApplication.class, args);
        System.out.println("(♥◠‿◠)ﾉﾞ  CRM启动成功   ლ(´ڡ`ლ)ﾞ  \n" +
                " .-------.       ____     __        \n" +
                " |  _ _   \\      \\   \\   /  /    \n" +
                " | ( ' )  |       \\  _. /  '       \n" +
                " |(_ o _) /        _( )_ .'         \n" +
                " | (_,_).' __  ___(_ o _)'          \n" +
                " |  |\\ \\  |  ||   |(_,_)'         \n" +
                " |  | \\ `'   /|   `-'  /           \n" +
                " |  |  \\    /  \\      /           \n" +
                " ''-'   `'-'    `-..-'              ");
    }
}
